---@class Battle.BuffEffect4:Battle.BuffEffectBase
---移除制定buff
local BuffEffect4 = Battle.CreateClass("BuffEffect4",Battle.BuffEffectBase)
Battle.BuffEffect4 = BuffEffect4
function BuffEffect4:OnCreate(buff)
    ---@type Battle.Skill
    self.buff = buff
    ---@type table
    self.param = decodeJsonStrToTable(buff.cfg.f_EffectParameter);
end

---buff生效时
function BuffEffect4:OnBuffStart(...)
    local target = Battle.ActorManager.GetActor(self.buff.targetId)
    for i, v in pairs(self.param) do
        Battle.BufferMgr.RemoveBuff(target.id, v[1])
    end
end

return BuffEffect4